package com.oepm.web.vo;

import com.oepm.dao.entity.UserPo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginVo {
    @ApiModelProperty("userid")
    private String userid;
    @ApiModelProperty("用户名")
    private String name;
    @ApiModelProperty("角色")
    private String role;
    private String academy;
    private String rank;
    private String sex_one;
    private String major_grade;
//    private String roleId;
    public String qq;
    public String email;
    public String phone;
    private String startTime;
    private String endTimeP;
    private String endTimeZ;
    public String token;

    public LoginVo(UserPo userPo, String role, String token){
        this.userid = userPo.getUserid();
        this.name = userPo.getName();
        this.academy = userPo.getAcademy();
        this.rank = userPo.getRank();
        this.major_grade = userPo.getMajor();
//        this.roleId = userPo.getRoleId();
        this.sex_one = userPo.getSex_one();
        this.role = role;
        this.qq = userPo.getQq();
        this.email = userPo.getEmail();
        this.phone = userPo.getPhone();
        this.token =token;
    }
}
